<template>
	<div class="contents">
		<van-nav-bar
		  title="设置"
		  left-text="返回"
		  left-arrow
		  @click-left="onClickLeft"
		/>
		<div class="content">
			<van-cell-group>
				<van-cell title="绑定手机号" is-link to="/settel" class="sellist"/>
				<van-cell title="绑定银行卡" is-link to="/setbank" class="sellist"/>
				<van-cell title="收货地址" is-link to="/setaddress" class="sellist"/>
			</van-cell-group>
			<section class="loginout">
				<van-button class="loginoutbtn" block>退出登录</van-button>
			</section>
		</div>
	</div>
</template>

<script>
import Vue from 'vue'
import { Row, Col, Cell, CellGroup, Button, NavBar } from 'vant'
Vue.use(Row).use(Col).use(Cell).use(CellGroup).use(Button).use(NavBar)

export default {
	data () {
		return {}
	},
	methods: {
		onClickLeft () {
			this.$router.go(-1)
		}
	}
}
</script>

<style lang="scss" scoped="scoped">
@import '@/lib/reset.scss';
.sellist:after {
	left: 0!important;
	border-bottom: 1px solid #ccc!important;
}
.loginout {
	padding: 0 .1rem;
	margin-top: .1rem;
	box-sizing: border-box;
}
.loginoutbtn {
	background: #696f80;
	color: #fff;
}
</style>
